var DB=require('./db.js')
var mongoose=DB.mongoose
var db=DB.db

var messageHistorySchema=new mongoose.Schema({
	from:{type:String},
	to:{type:String},
	date:{type:Date},
	message:{type:String}
})

var messageHistoryModel=db.model('message_history',messageHistorySchema)

exports.messageHistoryModel=messageHistoryModel